From 6cb399e7267ae78e3e498bdbf5f51678ffb2cd45 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Tue, 21 Feb 2023 23:24:14 +0100 Subject: feat: Many things Configure sanity in same project as the app Implement type safe sanity schema Read localised documents Strip down design --- src/routes/[lang=lang]/sections/contact.svelte | 4 +- src/routes/[lang=lang]/sections/description.svelte | 6 ++- src/routes/[lang=lang]/sections/hero.svelte | 61 +++------------------- src/routes/[lang=lang]/sections/products.svelte | 15 ++++-- 4 files changed, 24 insertions(+), 62 deletions(-) (limited to 'src/routes/[lang=lang]/sections') diff --git a/src/routes/[lang=lang]/sections/contact.svelte b/src/routes/[lang=lang]/sections/contact.svelte index b058180..2898e83 100644 --- a/src/routes/[lang=lang]/sections/contact.svelte +++ b/src/routes/[lang=lang]/sections/contact.svelte @@ -23,9 +23,9 @@ {#if visible}
-
+
-

{$LL.contact.title()}

+

{$LL.contact.title()}

diff --git a/src/routes/[lang=lang]/sections/description.svelte b/src/routes/[lang=lang]/sections/description.svelte index 79a3939..1fc23ab 100644 --- a/src/routes/[lang=lang]/sections/description.svelte +++ b/src/routes/[lang=lang]/sections/description.svelte @@ -1,7 +1,9 @@ @@ -19,7 +21,7 @@ {#if visible} -

{model.title}

+

{model.title}

{#if model.content} {/if} diff --git a/src/routes/[lang=lang]/sections/hero.svelte b/src/routes/[lang=lang]/sections/hero.svelte index 3cdf221..8a874dc 100644 --- a/src/routes/[lang=lang]/sections/hero.svelte +++ b/src/routes/[lang=lang]/sections/hero.svelte @@ -1,7 +1,9 @@ @@ -19,57 +21,8 @@ {#if visible} -
-
-
-
-

{model.title}

- {#if model.content} - - {/if} -
-
-
- -
- -
-
+

{model.title}

+ {#if model.content} + + {/if} {/if} - - diff --git a/src/routes/[lang=lang]/sections/products.svelte b/src/routes/[lang=lang]/sections/products.svelte index 816e276..a2999dc 100644 --- a/src/routes/[lang=lang]/sections/products.svelte +++ b/src/routes/[lang=lang]/sections/products.svelte @@ -1,4 +1,5 @@